package org.xerial.silk.editor.plugin;

import org.eclipse.dltk.core.IDLTKLanguageToolkit;
import org.eclipse.dltk.internal.ui.editor.ScriptEditor;
import org.eclipse.dltk.ui.text.ScriptTextTools;
import org.eclipse.jface.preference.IPreferenceStore;

public class SilkEditor extends ScriptEditor
{

    @Override
    public IDLTKLanguageToolkit getLanguageToolkit() {
        return SilkLanguageToolkit.getDefault();
    }

    @Override
    protected IPreferenceStore getScriptPreferenceStore() {
        return SilkPlugin.getDefault().getPreferenceStore();
    }

    @Override
    public String getEditorId() {
        return "org.xerial.silk.plugin.editor.SilkEditor";
    }

    @Override
    public ScriptTextTools getTextTools() {
        return SilkPlugin.getDefault().getTextTools();
    }

}
